<metal:block define-macro="mAddLang">
				
				<form action="mtranslator.php" method="get">
				<input type="hidden" name="lang" tal:attributes="value lang"/>
				<input type="hidden" name="action" tal:attributes="value action"/>
				<label for="language_select">Languages</label>
				<select name="language_select">
					<option value="ca">Catalán</option>
					<option value="jp">Japanese</option>
				</select>
				<input class="submit" type="submit" name="submit" value="Submit" />
				</form>
</metal:block>

<metal:block define-macro="mAddDomain">
				<form action="mtranslator.php" method="get">
				<input type="hidden" name="lang" tal:attributes="value lang"/>
				<input type="hidden" name="action" tal:attributes="value action"/>
				<label for="add_domain">Domain name</label>
				<input type="text" name="add_domain" size="20" />
				<input class="submit" type="submit" name="submit" value="Submit" />
				</form>
</metal:block>

<metal:block define-macro="mEditTransList">
				<tal:block condition="not: update">
				<form action="mtranslator.php" method="get">
				<input type="hidden" name="lang" tal:attributes="value lang"/>
				<input type="hidden" name="action" tal:attributes="value action"/>
				<input type="hidden" name="edit" tal:attributes="value edit"/>
				<input type="hidden" name="update" value="1" />
				<label for="edit_list">Translation item [<tal:block content="editRes/msgid"/>]</label>	
				<textarea rows="7" cols="47" name="edit_list" tal:content="editRes/msgstr" ></textarea>
				
				<input class="submit" type="submit" name="submit" value="Submit" />
				</form>
				</tal:block>
				
				<tal:block condition="update">
					<tal:block condition="editRes">
					<h3 class="ok_msg">update well done!</h3>
					</tal:block>
					<tal:block condition="not:editRes">
					<h3 class="error_msg">update NOT done!</h3>
					</tal:block>
				</tal:block>
	
</metal:block>

<metal:block define-macro="mAddTransList">
				<h3 style="display:None;">Add a translation:</h3>
				<form action="mtranslator.php" method="get">
				<input type="hidden" name="lang" tal:attributes="value lang"/>
				<input type="hidden" name="action" tal:attributes="value action"/>
				<h3 tal:condition="error_msn" class="error_msg"><tal:block content="structure error_msn|nothing"/></h3>
				<h3 tal:condition="ok_msn" class="ok_msg"><tal:block content="structure ok_msn|nothing" /></h3>
				<label for="select_domain">Select the domain</label>
				<select name="select_domain">
				 <option value="null">Select one option</option>
				 <tal:block replace="structure domainSelectionOptions|nothing"/>
				</select>
				<label for="add_msgid">Translation id</label>
				<textarea rows="7" cols="47" name="add_msgid"><tal:block content="msgid|nothing"/></textarea>
				<label for="add_msgstr">Translation string</label>
				<textarea rows="7" cols="47" name="add_msgstr"><tal:block content="msgstr|nothing"/></textarea>
				
				<input class="submit" type="submit" name="submit" value="Add" />
				</form>

</metal:block>